package day04;

public class h1 {
    public static void main(String[] args){
        int i=1;
        for(int year=1900;year<=2023;year++){
            boolean p=year%4==0&&year%100!=0||year%400==0;
            if(p&&i%10==0){
                System.out.print(year+"\n");
                i++;
            }
            if(p&&i%10!=0){
                System.out.print(year+"\t");
                i++;
            }

        }
    }
}
